<!-- BEGIN CONTEINER -->
<div id="content">
    <div id="title">
        <div class="left"><fmt:message key='userAdmin'/></div>
        <div class="sp"></div>
    </div>
    <table cellpadding="7">
        <tbody align="left">
            <tr>
                <th><fmt:message key='user'/></th>
                <th><fmt:message key='nom'/></th>
                <th><fmt:message key='mail'/></th>
                <th><fmt:message key='usertype'/></th>
                <th><fmt:message key='modify'/></th>

            </tr>
            <c:forEach var="user" items="${userslist}">
                <tr>
                    <td>${user.login}</td>
                    <td>${user.idClient.nom.replace("#",", ")}</td>
                    <td>${user.idClient.email}</td>
                    <td><c:if test="${user.idClient.idType eq 1}">
                            <img SRC="css/images/admin.png" alt=""  width="30" height="30" /> 
                        </c:if>
                        <c:if test="${user.idClient.idType eq 2}">
                            <img SRC="css/images/user.png" alt=""  width="30" height="30" /> 
                        </c:if>

                    </td> 
                    <td>
                        <c:if test="${user.idClient.idType eq 2}">
                            <a HREF="<c:url value='/doadmin?${user.idClient.idclient}'/>" class="image"><img SRC="css/images/admin.png" alt="<fmt:message key='doadmin'/>" title="<fmt:message key='doadmin'/>"  width="25" height="25" /></a> 
                            </c:if>
                            <c:if test="${user.idClient.idType eq 1}">
                            <a HREF="<c:url value='/douser?${user.idClient.idclient}'/>" class="image"><img SRC="css/images/user.png" alt="<fmt:message key='douser'/>" title="<fmt:message key='douser'/>"  width="25" height="25" /></a> 
                            </c:if>
                    </td>
                    <td><a HREF="<c:url value='/userDetail?${user.idClient.idclient}'/>"><img SRC="css/images/userinfo.png" alt="<fmt:message key='detail'/>" title="<fmt:message key='detail'/>" width="25" height="25"/></a></td>
                    </td>
                    <td><a HREF="<c:url value='/commandesClient?${user.idClient.idclient}'/>"><img SRC="css/images/commande.gif" alt="<fmt:message key='commandeDetails'/>" title="<fmt:message key='commandeDetails'/>"  width="30" height="30" /></a></td>
                    <td><a HREF="<c:url value='/userDelete?${user.idClient.idclient}'/>"><img SRC="css/images/delete.png" alt="<fmt:message key='delete'/>" title="<fmt:message key='delete'/>" width="15" height="15"/></a></td>
                        </c:forEach>         
        </tbody>
    </table>
</div>
<!-- END CONTENT -->
<div class="sp"></div>
</div>
<div class="sp"></div>
</div>
